<template>
<div>
  <div>
    <el-button type="success" round @click="add()" align="center">新增</el-button>
    <el-button type="primary" round @click="upload()" align="center">上传文件</el-button>
  </div>
  <div>  <MainTable></MainTable> </div>
</div>
</template>

<script>
import MainTable from '@/components/table/AuthTable'
import Page from '@/components/table/Page'
export default {
  name: 'table',
  components: {
    MainTable,
    Page
  },
  methods: {
    add () {
      this.$router.push({name: 'edit',
        query: {state: '新增'}
      })
    },
    upload () {
      this.$router.push({name: 'qiniu'})
    }
  }
}
</script>

<style scoped>
  div p {
    text-align: center;
    color: burlywood;
    size: 100px;
  }
  div div {
    margin: 5%;
  }
</style>
